﻿<UserControl x:Class="LaunchPad.Core.Controls.FieldControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:LaunchPad.Core.Controls"
             mc:Ignorable="d" 
             d:DesignHeight="218" d:DesignWidth="300">
    <UserControl.Resources>
        <Style TargetType="{x:Type DataGridCell}">
            <Style.Triggers>
                <Trigger Property="DataGridCell.IsSelected" Value="True">
                    <Setter Property="Background" Value="#CCDAFF" />
                </Trigger>
            </Style.Triggers>
        </Style>
    </UserControl.Resources>
    <Grid>
        <DataGrid ItemsSource="{Binding Path=Nodes}" Name="effectsDataGrid" AutoGenerateColumns="False" CanUserAddRows="False" Margin="0,29">
                <DataGrid.Columns>

                    <DataGridTemplateColumn Header="Nodes" Width="*">
                        <DataGridTemplateColumn.CellTemplate>
                            <DataTemplate>
                                    <local:NodeControl></local:NodeControl>
                            </DataTemplate>
                        </DataGridTemplateColumn.CellTemplate>
                    </DataGridTemplateColumn>
                    </DataGrid.Columns>
            </DataGrid>
                <Button Content="+" Height="23" HorizontalAlignment="Right" Name="addButton" VerticalAlignment="Bottom" Width="25" Click="AddButtonClick" />
        <Button Content="Discover" Height="23" HorizontalAlignment="Left" Name="discoverButton" VerticalAlignment="Top" Width="87" Click="DiscoverButtonClick" />
    </Grid>
</UserControl>
